#include<unistd.h>
#include<stdio.h>
#include<stdlib.h>
#include<fcntl.h>
#include<string.h>
#include<assert.h>
#define NUM 1024
#define SYNC_LINE 0
#define SYNC_NOW 1
#define SYNC_FULL 2
typedef struct _FILE
{
  int fileon;//file sinal
  int _flags;
  int _SIZE;
  int cap;
  char buffer[NUM];

}_FILE;

_FILE* _fopen(const char* pathName,const char* mode);
void _fflush(_FILE* fp);
void _fclose(_FILE* fp);
void _fwrite(const void* tmp,int num,_FILE* fp);
